<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增ADCP数据')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-adcpData-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">艇编号：</label>
                <div class="col-sm-8">
                    <input name="boatCode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="time" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第一层流速：</label>
                <div class="col-sm-8">
                    <input name="speed1" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第一层流向：</label>
                <div class="col-sm-8">
                    <input name="direction1" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第二层流速：</label>
                <div class="col-sm-8">
                    <input name="speed2" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第二层流向：</label>
                <div class="col-sm-8">
                    <input name="direction2" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第三层流速：</label>
                <div class="col-sm-8">
                    <input name="speed3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第三层流向：</label>
                <div class="col-sm-8">
                    <input name="direction3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第四层流速：</label>
                <div class="col-sm-8">
                    <input name="speed4" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第四层流向：</label>
                <div class="col-sm-8">
                    <input name="direction4" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第五层流速：</label>
                <div class="col-sm-8">
                    <input name="speed5" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第五层流向：</label>
                <div class="col-sm-8">
                    <input name="direction5" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第六层流速：</label>
                <div class="col-sm-8">
                    <input name="speed6" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第六层流向：</label>
                <div class="col-sm-8">
                    <input name="direction6" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第七层流速：</label>
                <div class="col-sm-8">
                    <input name="speed7" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第七层流向：</label>
                <div class="col-sm-8">
                    <input name="direction7" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第八层流速：</label>
                <div class="col-sm-8">
                    <input name="speed8" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第八层流向：</label>
                <div class="col-sm-8">
                    <input name="direction8" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第九层流速：</label>
                <div class="col-sm-8">
                    <input name="speed9" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第九层流向：</label>
                <div class="col-sm-8">
                    <input name="direction9" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第十层流速：</label>
                <div class="col-sm-8">
                    <input name="speed10" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第十层流向：</label>
                <div class="col-sm-8">
                    <input name="direction10" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "boat/adcpData"
        $("#form-adcpData-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-adcpData-add').serialize());
            }
        }

        $("input[name='time']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>